#include <mxml.h>

mxml_node_t* createXml();

void main() {
	//FILE * fp;
	//fp = fopen("filename.xml", "w");
	mxml_node_t *tree = createXml();
    //mxmlSaveFile(tree, fp, MXML_NO_CALLBACK);
    //fclose(fp);
	printf("xml test!\n");
}

mxml_node_t* createXml() {
	mxml_node_t *xml;
    mxml_node_t *data; 
    mxml_node_t *node;
    mxml_node_t *group;

    xml = mxmlNewXML("1.0");
/*
    data = mxmlNewElement(xml, "data");

    node = mxmlNewElement(data, "node");
    mxmlNewText(node, 0, "val1");
    node = mxmlNewElement(data, "node");
    mxmlNewText(node, 0, "val2");
    node = mxmlNewElement(data, "node");
    mxmlNewText(node, 0, "val3");

        group = mxmlNewElement(data, "group");

        node = mxmlNewElement(group, "node");
        mxmlNewText(node, 0, "val4");
        node = mxmlNewElement(group, "node");
        mxmlNewText(node, 0, "val5");
        node = mxmlNewElement(group, "node");
        mxmlNewText(node, 0, "val6");

        node = mxmlNewElement(data, "node");
        mxmlNewText(node, 0, "val7");
        node = mxmlNewElement(data, "node");
        mxmlNewText(node, 0, "val8");
*/
	return xml;
}

void readXml() {

}

